import { ResultEnum } from '@/apis/http/httpEnum'

export const normalLog = (id: string) => {
  return new Promise((resolve, reject) => {
    getCertLogApi({ id })
      .then((res: any) => {
        if (res.code !== ResultEnum.SUCCESS) {
          ToastUtils.error(res.message)
          return reject(res.message)
        }
        return resolve(true)
      })
      .catch(() => {
        reject('获取日志失败')
      })
  })
}
